package com.flying.utils.lang;

import org.apache.commons.lang3.time.DateFormatUtils;

public final class IntUtil {
    public final static String INT_PATTERN = "yyyyMMdd";

    public final static int getDate(long date) {
        return getDate(date, INT_PATTERN);
    }

    public final static int getDate(long date, String pattern) {
        return Integer.parseInt(DateFormatUtils.format(date, pattern));
    }
}